package com.software.exception;



/**
 * @BelongsProject: Second-hand-trading-platform
 * @BelongsPackage: com.software.exception
 * @Author: wyj
 * @CreateTime: 2024-02-27  16:04
 * @Description:
 * @Version: 1.0
 */
   public class ParamsException  extends RuntimeException{
    private Integer code= 500 ;
    private String  msg ;
    public ParamsException() {
        super("参数异常!");
    }

    public ParamsException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public ParamsException(Integer code) {
        super("参数异常!");
        this.code = code;
    }

    public ParamsException(Integer code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
